/*
 * Copyright (c) 2021 上海市政工程设计研究总院(集团)有限公司 All Rights Reserved.
 */
package com.smedi.ismedi.inmail.api.dto.request.appVersion;


import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 发布 查询 树 请求
 *
 * @author jiangqinxuan
 * @date 2023-08-17 10:06:55
 * @since 0.0.1
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "AppVersionCheckVersionRequest")
public class AppVersionCheckVersionRequest implements Serializable {
    /**
     * 本地版本
     */
    @NotBlank(message = "本地版本为空!")
    @Schema(description = "本地版本")
    @Pattern(regexp = "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$", message = "本地版本格式错误，应例如1.0.1！")
    private String localVersion;
    /**
     * 系统
     */
    @NotBlank(message = "系统为空!")
    @Schema(description = "系统")
    private String systemType;
}
